local skel = fk.CreateSkill {
  name = "lb_zero__jianwu",
}

Fk:loadTranslationTable {
  ["lb_zero__jianwu"] = "剑舞",
  [":lb_zero__jianwu"] = "每回合限一次，你可将一张牌当刺【杀】使用，其无视目标角色的防具。",

  ["#lb_zero__jianwu"] = "剑舞：你可以将一张牌当无视防具的刺【杀】使用",

  ["$lb_zero__jianwu1"] = "你的弱点…暴露出来了。",
  ["$lb_zero__jianwu2"] = "我看到了你的弱点。",
}

skel:addEffect("viewas", {
  anim_type = "offensive",
  pattern = "slash",
  prompt = "#lb_zero__jianwu",
  filter_pattern = {
    min_num = 1,
    max_num = 1,
    pattern = ".",
  },
  view_as = function (self, player, cards)
    if #cards ~= 1 then return nil end
    local card = Fk:cloneCard("stab__slash")
    card:addSubcards(cards)
    card.skillName = skel.name
    return card
  end,
  before_use = function (self, player, use)
    use.extra_data = use.extra_data or {}
    use.extra_data.lb_zero__jianwu = player
  end,
  enabled_at_play = function (self, player)
    return player:usedSkillTimes(skel.name) == 0
  end,
  enabled_at_response = function (self, player, response)
    return not response and player:usedSkillTimes(skel.name) == 0
  end,
})

skel:addEffect(fk.TargetSpecified, {
  can_refresh = function(self, event, target, player, data)
    return target == player and data.extra_data and data.extra_data.lb_zero__jianwu == target
  end,
  on_refresh = function(self, event, target, player, data)
    data.to:addQinggangTag(data)
  end,
})

return skel
